<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>卖家-修改个人信息</title>
<link href="<?php echo $this->_webroot('/user/css/common.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_webroot('/user/css/content1.css'); ?>" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->_webroot('/user/js/jquery-1.7.1.min.js'); ?>" type="text/javascript"></script>
<script src="<?php echo $this->_webroot('/user/js/common.js'); ?>" type="text/javascript"></script>


 
</head>
<body>
<psp:tags     htmlname='user_topnav1'  iconname='usertopnav1' />
<psp:tags     htmlname='user_topsearch'  iconname='usertopsearch' />

<div class="main">
	<div class="main-left">
    	<div class="title">会员管理中心</div>
        <psp:tags     htmlname='user_menulist'  iconname='usermenulist' />
    </div>
<link href="<?php echo $this->_webroot('/user/css/shoprequest.css'); ?>" rel="stylesheet" type="text/css" />   
    <div class="main-right main_right">
	

            <div class="cont">
                <div class="title_uc"><h3>供货商管理</h3></div>               

			<table width="100%" border="0" cellspacing="0">
				<tr>
                    <th style="width:;">供货商名称</th>
                    <th style="width:150px;">供货商账户</th>
                    <th style="width:;">负责人/电话号码</th>
                    <th style="width:60px;">QQ</th>
                    <th style="width:70px;">操作</th>
                </tr>
				<?php if(empty($address_rs)){?>
					<tr><td class="name" colspan="7">没有保存的供货商</td></tr>
				<?php }else{?>
				<?php foreach($address_rs as $val){?>
				<tr class="trcolor">
					<td class="name center"><?php echo $val['supplier']['sup_name'];?></td>
                    <td class="name"><?php echo $val['supplier']['sup_user_name'];?></td>
                    <td><?php echo $val['supplier']['sup_people'];?>/<?php echo $val['supplier']['sup_telphone'];?></td>
                    <td class="name"><?php echo $val['supplier']['sup_qq'];?></td>
                    <td class="name"><a href="<?php echo $this->_url('supplier/index/');?>?address_id=<?php echo $val['supplier']['id'];?>">修改</a>
					<br /><a href="<?php echo $this->_url('supplier/dellog/');?>?address_id=<?php echo $val['supplier']['id'];?>">删除</a>
					<br /><a href="<?php echo $this->_url('supplier/goods/');?>?id=<?php echo $val['supplier']['sup_user_id'];?>">我要进货</a>
					<br /><a href="<?php echo $this->_url('supplier/oldgoodsstock/');?>?id=<?php echo $val['supplier']['sup_user_id'];?>">历史进货</a>					
                    </td>
				</tr>
				<?php }?>
				<?php }?>
			</table>
			
      <form action="<?php echo $this->_url('supplier/index/');?>?address_id=<?php echo $address_id;?>" method="post" name="form_profile" onsubmit="return checkform();">
       <table id="newAddress" width="100%" border="0" cellspacing="0">
					<tr>
						<th align="left" width="30%">&nbsp;&nbsp;供货商管理</th><th width="70%"><span></span></th>
					</tr>
					<tr><td class="textright">供货商名称：</td>
						<td align="left"><input type="text" name="data[supplier][sup_name]" value="<?php echo  $user_info['sup_name'];?>" maxlength="12" /></td></tr>

					<tr><td class="textright">供货商账户：</td>
					<td><input type="text" name="data[supplier][sup_user_name]" value="<?php echo  $user_info['sup_user_name'];?>" style="width:250px;" maxlength="200" /></td></tr>
					<tr><td class="textright">负责人：</td>
					<td><input type="text" name="data[supplier][sup_people]" value="<?php echo  $user_info['sup_people'];?>" maxlength="6" /></td></tr>
					<tr><td class="textright">电话号码：</td>
						<td><input type="text" name="data[supplier][sup_telphone]" value="<?php echo  $user_info['sup_telphone'];?>" maxlength="20" /></td></tr>
					<tr><td class="textright">QQ：</td>
						<td><input type="text" name="data[supplier][sup_qq]" value="<?php echo  $user_info['sup_qq'];?>" maxlength="20" /></td></tr>
					
						<input type="hidden" name="data[supplier][id]" value="<?php echo  isset($user_info['id'])?$user_info['id']:'';?>" />
					<tr><td></td><td><span><input type="submit" name="submit" value="提交订单" /></span></td></tr>
				</table>

		</form>			  		  
            </div>
    </div>
    <div class="clear"></div>
</div>

<div class="footer">
    <psp:tags     htmlname='user_footer_helper'  iconname='userfooterhelper' />

</div>

<script language="JavaScript">
<!--



function checkForm() {
/*	var shop_name = document.getElementsByName("shop_name")[0];
	var shop_address = document.getElementsByName("shop_address")[0];
	var shop_management = document.getElementsByName("shop_management")[0];
	if(shop_name.value=='') {
		alert("供货商名称不能为空！");
		shop_name.focus();
		return false;
	}else if(document.getElementsByName("country")[0].value==0) {
		alert("请选择国家！");
		return false;
	} else if(document.getElementsByName("province")[0].value==0) {
		alert("请选择省份！");
		return false;
	} else if(document.getElementsByName("city")[0].value==0) {
		alert("请选择城市！");
		return false;
	} else if(document.getElementsByName("district")[0].value==0) {
		alert("请选择地区！");
		return false;
	} else if(shop_address.value=='') {
		alert("供货商账户不能为空！");
		shop_name.focus();
		return false;
	} else if(shop_management.value=='') {
		alert("电话号码不能为空！");
		shop_management.focus();
		return false;
	}*/
	return true;
}

//-->
</script>

</body>
</html>